﻿using System;
using System.Collections.Generic;

namespace SBPweb.Modules.Smartparts
{
    /// <summary>
    /// This interface inherits from IList interface,
    /// and represents a list of ISmartparts.
    /// </summary>
	public interface ISmartpartList : IList<ISmartpart>
    {
        /// <summary>
        /// Gets an array of the ISmartpart items.
        /// </summary>
        ISmartpart[] Items
        {
            get;
        }

        /// <summary>
        /// Occurs when a new item is added to the list.
        /// </summary>
        event EventHandler<SmartpartEventArgs> ItemAdded;

        /// <summary>
        /// Occurs when an item is removed from the list.
        /// </summary>
        event EventHandler<SmartpartEventArgs> ItemRemoved;

    }
}